package com.atguigu.spzx.manager.service.impl;

import com.atguigu.spzx.common.log.service.AsyncSysOperLogService;
import com.atguigu.spzx.manager.mapper.SysOperLogMapper;
import com.atguigu.spzx.model.entity.system.SysOperLog;
import jakarta.annotation.Resource;
import org.springframework.scheduling.annotation.Async;
import org.springframework.stereotype.Service;

@Service
public class SysOperLogServiceImpl implements AsyncSysOperLogService {
    @Resource
    SysOperLogMapper sysOperLogMapper;
    @Async //业务方法调用时不会阻塞 异步执行
    @Override
    public void saveSysOperLog(SysOperLog sysOperLog) {
        sysOperLogMapper.save(sysOperLog);
    }
}
